#!/bin/sh

export JAVA_HOME=/Users/yangwen/my/service/graalvm/graalvm-community-openjdk-21.0.1+12.1/Contents/Home
export MAVEN_HOME=/Users/yangwen/my/service/maven/apache-maven-3.8.1
export PATH=:$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin

native-image --version

cd ..
mvn clean install -U -am -Dmaven.test.skip=true
cd target
native-image -jar lab2-1.0.jar
#native-image -jar lab2-1.0.jar --initialize-at-build-time=fun.asgc.graalvmlab.lab2.Person,fun.asgc.graalvmlab.lab2.Main
